from rest_framework.serializers import ModelSerializer
from .models import User, News


class UserSer(ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class NewsSer(ModelSerializer):
    class Meta:
        model = News
        fields = '__all__'
